<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:insert name="menu">
	<h:form>

		<p:menubar>

			<p:submenu label="Tabelas" icon="ui-icon-document">

				<p:menuitem value="Estado" update=":windowGroup :menuPanel"
					ajax="true">
					<f:setPropertyActionListener target="#{viewBean.urlWindow}"
						value="estado.xhtml" />

				</p:menuitem>

				<p:menuitem value="Cidade" update=":windowGroup" ajax="true"
					process="@this">

					<f:setPropertyActionListener target="#{viewBean.urlWindow}"
						value="cidade.xhtml" />

				</p:menuitem>

				<p:menuitem value="Evento" url="/estado.jsf" />
			</p:submenu>

			<p:submenu label="Segurança">

				<p:menuitem value="Usuário" update=":windowGroup" ajax="true"
					process="@this">

					<f:setPropertyActionListener target="#{viewBean.urlWindow}"
						value="user.xhtml" />

				</p:menuitem>

				<p:menuitem value="Grupo" url="/user.jsf" />
				<p:menuitem value="Permissões" url="/user.jsf" />
				<p:menuitem value="Alterar Senha" url="/user.jsf" />

			</p:submenu>

			<p:submenu label="Informações">

				<p:menuitem value="Sobre" update=":windowGroup" ajax="true"
					process="@this">

					<f:setPropertyActionListener target="#{viewBean.urlWindow}"
						value="about.xhtml" />

				</p:menuitem>
							<p:menuitem value="Sobre modal" update=":modalGroup" ajax="true"
					process="@this">

					<f:setPropertyActionListener target="#{viewBean.modalWindow}"
						value="about.xhtml" />

				</p:menuitem>
			</p:submenu>

		</p:menubar>

	</h:form>
</ui:insert>

</html>